<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>刘金星个人博客</title>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <!-- Styles -->
    <link rel="stylesheet" href="/css/app.css">
</head>
<body>
<div id="app">
    <nav class="navbar lx-navbar navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                        aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/#" @click="goHome">刘金星个人博客</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav pull-right">
                    <template v-for="item in menus" :key="item.id">
                        <template v-if="item.target == '_self'">
                            <router-link tag="li" :to="item.url" exact>
                                <a> <i class="fa" :class="item.icon" v-if="item.icon"></i>@{{ item.name }} </a>
                            </router-link>
                        </template>
                        <template v-else>
                            <li>
                                <a :href="item.url" :target="item.target">@{{ item.name }}</a>
                            </li>
                        </template>
                    </template>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container main" :style="{minHeight:height}">
        <transition name="slide-fade">
            <router-view></router-view>
        </transition>
    </div>
    <footer>
        <p>Design by <a href="/">刘金星个人博客</a> <a href="/">蜀ICP备11002373号-1</a></p>
    </footer>
</div>
<script src="/js/app.js"></script>
</body>
</html>
